home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / taropyon / guilib3 / inc / cmos.h next >
C/C++ Source or Header  |  1993-11-30  |  1KB  |  50 lines

  1. #ifndef    _CMOS_H
  2. #define    _CMOS_H
  3.  
  4. typedef struct {
  5.     char    reserve1[6];
  6.     struct    {
  7.         char    drvtype;        /* ドライブ種別 FFはドライブが繋がっていない */
  8.         char    drvnum;            /* ドライブ NO. */
  9.     } drvkid[16];
  10.  
  11.     short ramsize;                /* RAM サイズ */
  12.  
  13.     struct    {
  14.         char    bps;            /* ボーレート */
  15.         char    mode;            /* モード */
  16.         unsigned short    s_time;    /* 送信タイムアウト */
  17.         unsigned short    r_time;    /* 受信タイムアウト */
  18.     } port[5];
  19.  
  20.     char    reserve2[6];
  21.  
  22.     struct    {
  23.         char    prntype;        /* プリンタ種別 */
  24.         char    prnmode;        /* プリントモード */
  25.         char    kantype;
  26.     } prn[1];
  27.  
  28.     char    reserve3[15];
  29.     char    singmode;            /* シングルドライブモード */
  30.     char    kbtype;
  31.  
  32.     struct    {
  33.         char    g_type;
  34.         char    t_type;
  35.         char    c_type;
  36.     } cpy[3];
  37.  
  38.     char    wtoption;            /* 2DD ライト    */
  39.     char    reserve4[27];
  40.     char    reserve5[128];
  41.  
  42. } SYSDAT_T;
  43. #define    SYSDAT    SYSDAT_T
  44.  
  45. extern int    CMOS_getDatPartTopLen(int, int);
  46. extern int    CMOS_setDat(int, int, int, int, SYSDAT *);
  47. extern int    CMOS_getDat(int, int, int, int, SYSDAT *);
  48.  
  49. #endif
  50.